package org.yefei.homeworkday02;

import java.util.Scanner;

public class ChangeInch {

	public static void main(String[] args) {
		// 2：已知1英寸(in)=2.54厘米(cm)。输入英寸数，转换成厘米，并输出
		Scanner input = new Scanner(System.in);
		System.out.println("输入英寸数：");
		double inch = input.nextDouble();
		double centerMiter = 2.54;
		double end = inch * centerMiter;
		System.out.println(inch + "英寸等于" + end + "厘米");
	}

}
